<template>
	<view class="bigbox">
		<view class="title" style="display: flex;justify-content: space-between;color: white;padding-top: 100rpx;">
			<view class="left">
				<uni-icons custom-prefix="iconfont" type="icon-xiangzuojiantou"
					style="font-size: 35rpx; margin-left: 10rpx;color: white;" size="10"></uni-icons>
			</view>
			<view class="cton" style="display: flex;justify-content: center;">登录</view>
			<view class="right"></view>
		</view>
		<!-- <image class="bgi" src="/static/image/loging.png" mode=""></image> -->
		<view class="content" style="height: 320rpx;">
			<view class="content-login">
				<span></span>
				<h2>验证码登录</h2>
				<span @click="jup3">密码登录</span>
			</view>
			<view class="content-input">
				<view class="">

					<input type="text" placeholder="请输入手机号" />
				</view>
				<view class="" style="display: flex;align-items: center;height: 100rpx;">

					<input type="text" placeholder="请输入验证码" />
					<span style="display: flex;align-items: center;">获取验证码</span>
				</view>
			</view>
		</view>
		<button style="font-size: 30rpx;" @click="jup4">登录</button>
		<p @click="jup2">没有账号，立即注册</p>
	</view>
</template>

<script>
	export default {
		data() {
			return {

			};
		},
		methods: {

			jup2() {
				uni.navigateTo({
					url: '/pages/pages/register/register'
				})
			},
			jup3() {
				uni.navigateTo({
					url: '/pages/pages/pass/pass'
				})
			},
			jup4() {
				uni.switchTab({
					url: '/pages/pages/home/home'
				})
			}

		}
	};
</script>

<style lang="less">
	page {
		background-color: #f4f4f4;
	}

	.bigbox {
		background-image: url(/static/image/loging.png);
		background-repeat: no-repeat;
		background-position: center top;
		/* 水平+垂直居中（最常用）*/
		background-size: 100% 380rpx;
		// background-color: #f9f9f9;
		// height: 140vh;
	}

	.bgi {
		position: fixed;
		width: 100%;
		top: 0;
		left: 0;
		right: 0;
		height: 500rpx;
		z-index: 1;
	}

	.content {
		// border: 1px solid #000;
		position: relative;
		z-index: 2;
		background-color: #fff;
		margin: 20rpx;
		margin-top: 60rpx;
		border-radius: 15rpx;
		padding: 30rpx;

		.content-login {
			display: flex;
			justify-content: space-between;
			align-items: center;
			padding: 30rpx 0rpx;
			padding-bottom: 50rpx;

			h2 {
				font-size: 35rpx;
			}

			span {
				width: 150rpx;
				font-size: 26rpx;
				font-weight: 800;
			}
		}

		.content-input {
			position: relative;

			input {
				height: 80RPX;
				padding-left: 30rpx;
				padding-right: 30rpx;
				font-size: 32rpx;
				color: #c5c5c5;
			}

			input:nth-child(1) {
				border-bottom: 1px solid #f5f5f5;
			}

			span {
				position: absolute;
				right: 0;
				bottom: 30rpx;
				font-size: 28rpx;
				color: #2275bd;
			}
		}
	}

	button {
		background-color: #39abf7;
		color: #fff;
		border-radius: 50rpx;
		margin: 80rpx 150rpx;
	}

	p {
		text-align: center;
	}
</style>